<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8" />
<title>Insert title here</title>
<link th:href="@{/static/layui/css/layui.css}" rel="stylesheet"/>
</head>
<body>
  <h2>用户列表</h2>
  <div>
     <ul>
         <li  th:each="user:${users}">
              <span th:text="${user.id}"></span>-
             <span th:text="${user.name}"></span>-
             <span th:text="${user.age}"></span>-
             <span th:text="${user.address}"></span>
         </li>
     </ul>
   </div>
   
   <table class="layui-hide" id="demo"></table>
   <script th:src="@{/static/layui/layui.all.js}"></script>   
   <script type="text/javascript">
   
 //在这里面输入任何合法的js语句
   layer.open({
     type: 1 //Page层类型
     ,area: ['500px', '300px']
     ,title: '你好，layer。'
     ,shade: 0.6 //遮罩透明度
     ,maxmin: true //允许全屏最小化
     ,anim: 1 //0-6的动画形式，-1不开启
     ,content: '<div style="padding:50px;">这是一个非常普通的页面层，传入了自定义的html</div>'
   });  
   
   </script>
   
   
</body>
</html>